package com.example.forum.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class ArticleCreate {
    private Integer categoryId;
    @NotBlank(message = "文章内容为空")
    private String content;
    private Integer status;
    private String tag;
    @NotBlank(message = "文章标题不能为空")
    private String title;
}
